var cssFiles = [
    "css/pagination.css",
    "css/ui-dialog.css",
    "libs/toastr/toastr.min.css"
];

var jsFiles = [
    "libs/jquery-1.11.2.min.js",
    "libs/jquery.cookie.js",
    "libs/angular.min.js",
    "libs/angular-sanitize.min.js",
    "libs/jquery.pagination.js",
    "js/utils.js",
    "js/public.js",
    "libs/AQ.js",
    "app/app.js",
    "dic/dic.js",
    "directives/head/headerCtrl.js",
    "directives/xNav/x-nav.js",
    "libs/jquery.form.min.js",
    "libs/jquery.validate.min.js",
    "js/dialog-min.js",
    "js/zClip/jquery.zclip.min.js",
    "libs/jquery.base64.js",
    "libs/toastr/toastr.min.js"
];

var rootPath = '../fz/';

//加载CSS文件
for (var i = 0; i < cssFiles.length; i++) {
    //创建link元素
    document.write('<link href="' + rootPath + cssFiles[i] + '" rel="stylesheet" type="text/css" />');
}

//加载js文件
for (var i = 0; i < jsFiles.length; i++) {
    document.write('<script' + ' type="text/javascript" src="' + rootPath + jsFiles[i] + '"></script>');
}

/**
 * 网站流量统计
 */
var _hmt = _hmt || [];
(function () {
    var hm = document.createElement("script");
    hm.src = "//hm.baidu.com/hm.js?d2334d6395fcfea02a1baa24ce364790";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
    console.log("统计代码执行");
})();
